package lhdx11;

public  class Pc implements Cpu,Ems,HardDisk {
    private String pinP;
    private int jiaG;

    public Pc(String pinP, int jiaG) {
        this.pinP = pinP;
        this.jiaG = jiaG;
    }

    public String getPinP() {
        return pinP;
    }

    public void setPinP(String pinP) {
        this.pinP = pinP;
    }

    public int getJiaG() {
        return jiaG;
    }

    public void setJiaG(int jiaG) {
        this.jiaG = jiaG;
    }
    public void show(){
        System.out.println(pinP+"笔记本的信息如下：");
    }

    @Override
    public String cpuBrand() {
        System.out.print("Cpu的品牌是：");
        return "Intel";
    }

    @Override
    public double cpuZp() {
        System.out.print("主频是：");
        return 3.8;
    }

    @Override
    public String memoryType() {
        System.out.print("内存类型：");
        return "RDRAM";
    }

    @Override
    public int capacity() {
        System.out.print("内存容量：");
        return 12;
    }

    @Override
    public int yicapacity() {
        System.out.print("硬盘容量：");
        return 516;
    }
}
